/**
 * @description 链接列表
 */
export const urlList = params => ({
  url: '/url/list',
  method: 'GET',
  params
})

/**
 * @description 添加链接
 */
export const addUrl = data => ({
  url: '/url',
  method: 'POST',
  data
})

/**
 * @description 修改链接
 */
export const modifyUrl = (id, data) => ({
  url: `/url/${id}`,
  method: 'PUT',
  data
})

/**
 * @description 删除链接
 */
export const delUrl = id => ({
  url: `/url/${id}`,
  method: 'DELETE',
})
